home *** CD-ROM | disk | FTP | other *** search
- /*
- * Load Monitor
- *
- * Copyright © 2001 Alexandre Vial, some parts from Bernhard Baehr
- *
- * MainController.h - Main Application Controller Class
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-
- #import <Cocoa/Cocoa.h>
- #import "LoadInfo.h"
- #import "Preferences.h"
- #import "TranslucentView.h"
- #import "TranslucentWindow.h"
-
-
- @interface MainController : NSObject
- {
- // IBOutlet id aboutBox; // the About box
- Preferences *preferences; // the preferences
- MemInfo *memInfo; // memory usage data buffer
- NSTimer *timer; // timer for icon refreshs
- NSImage *iconImage; // the dock icon image
- NSImage *graphImage; // image of the graph (w/o text) for updates
- TranslucentView *view; // view for the graph window
- TranslucentWindow *window; // window for the graph
-
- int LOAD_MAX; // the number of step to be displayed
- int x_max; // place of the max
- }
-
- - (void)showPreferences:(id)sender;
- //- (void)showAboutBox:(id)sender;
- - (IBAction)showAboutBox:(id)sender;
-
- @end
-